﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Scheduler;

namespace CoursePack
{
    [Serializable]
    public class Semester
    {
        private Session m_Session;
        private SavedSchedule m_SavedSchedule;

        public Semester(SavedSchedule _Schedule,Session _Session)
        {
            this.m_SavedSchedule = _Schedule;
            this.m_Session = _Session;           
        }

        
        #region Accessors
        public ESession Session
        {
            get { return this.m_Session.ESession; }
        }

        public int Year
        {
            get { return this.m_Session.Year; }
        }

        public SavedSchedule SavedSchedule
        {
            get { return this.m_SavedSchedule; }
        }
        /*
        public float TotalCredits
        {
            get
            {   
                float result = 0;
                foreach (Course c in this..Courses)
                {
                    result += c.Credits;
                }
                return result;
            }
        }*/

        /*
        public StudentSchedule Schedule
        {
            get { return this.m_Schedule; }
            set { this.m_Schedule = value; }
        }*/
        #endregion
    }
}
